from drf_haystack.serializers import HaystackSerializer
from six_it.search_indexes import ArticleIndex


class ArticleSearchSerializers(HaystackSerializer):
    """
    索引结果数据序列化器
    """

    class Meta:
        index_classes = [ArticleIndex]
        fields = ["text", "id", "title", "content", "createtime"]

